package net.lcheng.service.impl;

import net.lcheng.dao.OOrderItemMapper;
import net.lcheng.model.OOrderItem;
import net.lcheng.service.OOrderItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by LV on 2016/7/22.
 */
@Service("orderItemService")
public class OOrderItemServiceImpl implements OOrderItemService {
    @Resource
    private OOrderItemMapper orderItemMapper;
    /**
     * 查询订单子商品信息
     * @param key 订单子商品主键
     * @return
     */
    @Override
    public OOrderItem getOOrderItemByPrimaryKey(String key) {
        return orderItemMapper.selectByPrimaryKey(key);
    }
}
